home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
011
/
int86.arc
/
INT86.TXT
< prev
next >
Wrap
Text File
|
1986-12-31
|
3KB
|
64 lines
INT86.EXE
CLASS: Lattice
NAME
INT86 sets registers and generates interrupt from keyboard
SYNOPSIS
int86 [<a,b,c,d}{l,h,x}{si,di} [=] <value>,<number>] ...
DESCRIPTION
Values can be start with 0x for hexidecimal, 0 for octal or
default to decimal. A number not equated to a register will be used
as the interrupt number.
This program permits the user to set the CPU registers and generate
DOS and BIOS interrupts directly from the keyboard. It is very usuful
when trying to see what values are returned in what registers. I have
found it to be an excellent teaching tool for learning about
interrupts and DOS service functions.
EXAMPLE
The best way to learn about int86 is to try using it.
int86 33 ah=42
vec=33
reg h l x
a 0052, 42,0x2a 0000, 0,0x00 0025000,10752,0x2a00
b 0000, 0,0x00 0000, 0,0x00 0000000, 0,0x0000
c 0000, 0,0x00 0000, 0,0x00 0000000, 0,0x0000
d 0000, 0,0x00 0000, 0,0x00 0000000, 0,0x0000
si 0000000, 0,0x0000
di 0000000, 0,0x0000
reg h l x
a 0052, 42,0x2a 0003, 3,0x03 0025003,10755,0x2a03
b 0000, 0,0x00 0000, 0,0x00 0000000, 0,0x0000
c 0007, 7,0x07 0302,194,0xc2 0003702, 1986,0x07c2
d 0014, 12,0x0c 0037, 31,0x1f 0006037, 3103,0x0c1f
si 0000000, 0,0x0000
di 0000000, 0,0x0000
In this example the DOS service interrupt (decimal 33) was requested.
The DOS function call to function 42 (decimal) was placed in ah.
This request the date to be returned.
Upon return for the interrupt cx has the year (1986)
dh has the month (12) dl has the day (31) and al has a 3 for the day of the
week (Wednesday).
This routine may also look for the current setup of your machine,
show availible memory or set screen attributes. Be very careful when
setting registers. Un predicible things may happen if you make a
mistake. Check with any guide to DOS functions and BIOS calls for
what registers to load.